@@ -25,17 +25,19 @@ module Agents |
||
| 25 | 25 |
|
| 26 | 26 |
If you'd like to output RSS tags with attributes, such as `enclosure`, use something like the following in your `template`: |
| 27 | 27 |
|
| 28 |
- "enclosure" => {
|
|
| 29 |
- "_attributes" => {
|
|
| 30 |
- "type" => "audio/mpeg", |
|
| 31 |
- "url" => "{{media_url}}"
|
|
| 28 |
+ "enclosure": {
|
|
| 29 |
+ "_attributes": {
|
|
| 30 |
+ "url": "{{media_url}}",
|
|
| 31 |
+ "length": "1234456789", |
|
| 32 |
+ "type": "audio/mpeg" |
|
| 32 | 33 |
} |
| 33 | 34 |
}, |
| 34 |
- "tag" => {
|
|
| 35 |
- "_attributes" => {
|
|
| 36 |
- "key" => "value" |
|
| 35 |
+ "another_tag": {
|
|
| 36 |
+ "_attributes": {
|
|
| 37 |
+ "key": "value", |
|
| 38 |
+ "another_key": "another_value" |
|
| 37 | 39 |
}, |
| 38 |
- "_contents" => "tag contents (can be an object for nesting)" |
|
| 40 |
+ "_contents": "tag contents (can be an object for nesting)" |
|
| 39 | 41 |
} |
| 40 | 42 |
MD |
| 41 | 43 |
end |